/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Presentation;

import BLO.LichTDBLO;
import DAO.LichTDDAO;
import DAO.ResultsModel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

/**
 *
 * @author LUCKYSTARS
 */
public class BXH extends javax.swing.JPanel {

    /**
     * Creates new form BXH
     */
    LichTDBLO ltdBLO = new LichTDBLO();
    public BXH() {
        initComponents();
         ResultsModel dtable= ltdBLO.GetdataBXH();
        JTable tb= new JTable(dtable);
        tb.setBounds(0,0,869,200);
        JScrollPane js= new JScrollPane(tb);
        js.setBounds(0,0,869,200);
        dgvBXH.removeAll();
        dgvBXH.add(js);
        
     
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        dgvBXH = new javax.swing.JPanel();

        setMaximumSize(new java.awt.Dimension(869, 533));
        setMinimumSize(new java.awt.Dimension(872, 533));
        setPreferredSize(new java.awt.Dimension(872, 533));

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
        jLabel1.setText("Bảng Xếp Hạng Giải Bóng Đá");

        javax.swing.GroupLayout dgvBXHLayout = new javax.swing.GroupLayout(dgvBXH);
        dgvBXH.setLayout(dgvBXHLayout);
        dgvBXHLayout.setHorizontalGroup(
            dgvBXHLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        dgvBXHLayout.setVerticalGroup(
            dgvBXHLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 438, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(dgvBXH, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(29, 191, Short.MAX_VALUE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 616, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(65, 65, 65))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(dgvBXH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(22, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel dgvBXH;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
